﻿using static WMSUIMVC.Controllers.ProcurementController;

namespace WMSUIMVC.Aubit.Procurement
{
    public class AddProcurementDto : BaseDTO
    {
        /// <summary>
        /// 采购信息表id
        /// </summary>
        public int procurementId { get; set; }

        /// <summary>
        /// 采购单号
        /// </summary>
        public string? procurementCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public int? clientId { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>
        public int? documentType { get; set; }

        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? associateNumber { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public int? vendorId { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string? pcontact { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? phone { get; set; }

        /// <summary>
        /// 收货日
        /// </summary>
        public DateTime? receiptDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? pRremark { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        public string? makePerson { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? markTime { get; set; }

        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_Id { get; set; }

        public List<AddProductDetail> ProductDetail { get; set; }
    }
    public class AddProductDetail
    {


        /// <summary>
        /// 采购id
        /// </summary>
        public string? procurementCode { get; set; }

        /// <summary>
        /// 产品id
        /// </summary>
        public int? productsId { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int? procureNum { get; set; }

        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_Id { get; set; }

    }

}
